import service from "./request";

export async function useGetWorkstationListApi() {
    return await service.get('/workstation/list');
}

export async function usePostProceedDispatchApi(workstationId) {
    return await service.post(`/dispatch/proceed/${workstationId}`);
}

export async function usePostCompleteDishpatchApi(workstationId) {
    return await service.post(`/dispatch/complete/${workstationId}`);
}

export async function useGetWorkStationProssesProductListApi(workstationId) {
    return await service.get(`/dispatch/list/${workstationId}`);
}